import QtQuick 1.0
import com.nokia.symbian 1.0

Page {
    id: mainPage



    Component {
        id: listDelegate

        ListItem {
            id: listItem

            Column {
                anchors.fill: listItem.paddingItem

                ListItemText {
                    mode: listItem.mode
                    role: "Title"
                    text: name // Title text from model
                    width: parent.width
                    color: platformStyle.colorNormalLight

                }

                ListItemText {
                    mode: listItem.mode
                    role: "SubTitle"
                    text: description // SubTitle text from model
                    width: parent.width
                }
            }
        onClicked: {
            logic.setNetworkConfigurationRow(model.index);
            pageStack.push(Qt.resolvedUrl("IpPage.qml"))
        }
        //onPressAndHold: console.log("ListItem press-and-hold")
        }
    }

    ListView {
        id: listView
        model: logic.networkModel
        delegate: listDelegate
        anchors.fill: parent
    }
}
